package hw524919.lesson2;

public class StaticClassLearn {
	public StaticClassLearn(){
		a++;
	}

	public static int getA(){
		return a;
	}
	
	private static int add(){
		System.out.println("add");
		return a+b;
	}
	
	public static void main(String[] args) {
		System.out.println("add:c="+add());
		System.out.println("main:a="+a);
		System.out.println(Integer.getInteger(a1));
	}
	
	static int a=0;
	static int b=2;
	static final String a1="1";
	
	static{
		System.out.println("a="+a);
	}
	
	static{
		System.out.println("b="+b);
	}
	

}
